package com.wangyu.talents.web.system.resource.mapper;

import com.wangyu.talents.core.persistence.BaseMapper;
import com.wangyu.talents.web.system.resource.model.Resource;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 资源持久层
 *
 * @author wangyu
 * @Date 2018-09-04 14:47
 */
@Mapper
public interface ResourceMapper extends BaseMapper<Resource> {

  /**
   * 查询用户角色对应的资源权限
   */
  List<Map<String, Object>> findRolePermissions(@Param("roleIds") Long[] roleIds);
}
